home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / userbox / publicdomain / startmenu / install_new < prev    next >
Text File  |  1996-06-11  |  7KB  |  300 lines

  1. ; Install_New
  2. ; Install v2.0 of StartMenu
  3. ; Copyright © 1996 John Corigliano
  4. ; $VER: Install_New 1.0
  5.  
  6. (set vers (+ (getenv "Kickstart")))
  7.  
  8. (welcome "Welcome to the StartMenu installation!")
  9.  
  10. (set dirhelp
  11.    (cat
  12.         "Select a place on your hard drive where you want to install StartMenu.\n"
  13.         "The installer will create a drawer there called \"StartMenu\" and will put all of StartMenu's files in that drawer.\n"
  14.     )
  15. )
  16.  
  17. (set new_dir
  18.     (askdir
  19.         (prompt "Where do you want to install StartMenu?\nA drawer called StartMenu will be created there.")
  20.         (help dirhelp)
  21.         (default "Work:")
  22.     )
  23. )
  24.  
  25. (set @default-dest (tackon new_dir "StartMenu"))
  26. (makedir @default-dest (infos))
  27.  
  28. (tooltype
  29.     (dest "Dist/StartMenu")
  30.     (settooltype "PATH" @default-dest)
  31. )
  32.  
  33. (tooltype
  34.     (dest "Dist/StartMenuLite")
  35.     (settooltype "PATH" @default-dest)
  36. )
  37.  
  38. (tooltype
  39.     (dest "Dist/StartMenuUltraLite")
  40.     (settooltype "PATH" @default-dest)
  41. )
  42.  
  43. (set ttypehelp
  44.     (cat
  45.         "To enable keyboard control of StartMenu, you must enter a key-combination for StartMenu to use.\n"
  46.         "This key-combination can be any valid Commodities key sequence.\n"
  47.         "The default value is \"rawkey ralt up\" which is the \"Right Alt Key plus Up Arrow Key\" key combination.\n"
  48.         "You must enter a key sequence here."
  49.     )
  50. )
  51. (set ttype
  52.     (askstring
  53.         (prompt "Please enter the hot-key combination to use with StartMenu")
  54.         (help ttypehelp)
  55.         (default "rawkey ralt up")
  56.     )
  57. )
  58. (if (= ttype "")
  59.     (set ttype "rawkey ralt up")
  60. )
  61.  
  62. (tooltype
  63.     (dest "Dist/StartMenu")
  64.     (settooltype "HOTKEY" ttype)
  65. )
  66.  
  67. (tooltype
  68.     (dest "Dist/StartMenuLite")
  69.     (settooltype "HOTKEY" ttype)
  70. )
  71.  
  72. (tooltype
  73.     (dest "Dist/StartMenuUltraLite")
  74.     (settooltype "HOTKEY" ttype)
  75. )
  76.  
  77. (copyfiles
  78.     (prompt "Copying new files...")
  79.     (source "Dist")
  80.     (help @copyfiles-help)
  81.     (dest @default-dest)
  82.     (all)
  83.     (infos)
  84.     (optional "force")
  85. )
  86.  
  87. (makedir (tackon @default-dest "StartUp") (infos))
  88.  
  89. (if (> 39 vers)
  90.     (
  91.         (copyfiles 
  92.             (prompt "Copying prefs...")
  93.             (source "main.pref.20")
  94.             (dest @default-dest)
  95.             (newname "main.pref")
  96.         )
  97.         (copylib
  98.             (prompt "Installing WBStartup-Handler to L:")
  99.             (source "L/WBStart-Handler")
  100.             (dest "L:")
  101.             (confirm)
  102.             (help "StartMenu uses this to launch programs.")
  103.         )
  104.         (protect "L:WBStart-Handler" "+e")
  105.     )
  106.     (
  107.         (copyfiles 
  108.             (prompt "Copying prefs...")
  109.             (source "main.pref.30")
  110.             (dest @default-dest)
  111.             (newname "main.pref")
  112.         )
  113.         (copylib
  114.             (prompt "Installing wbstart.library to LIBS:")
  115.             (source "Libs/wbstart.library")
  116.             (dest "LIBS:")
  117.             (confirm)
  118.             (help "StartMenu uses this to launch programs.")
  119.         )
  120.     )
  121. )
  122.  
  123. (copyfiles 
  124.     (prompt "Copying prefs...")
  125.     (source "start.pref.tmp")
  126.     (dest @default-dest)
  127.     (newname "start.pref")
  128. )
  129.  
  130. (set starthelp
  131.     (cat
  132.         "If you want StartMenu to run everytime you boot your computer pick one of the first three items.\n"
  133.         "The three choices are:\n"
  134.         "  \" StartMenu\" - this is the full version.\n"
  135.         "  \"StartMenuLite\" - this is just the menus and no taskbar.\n"
  136.         "  \" StartMenuUltraLite\" - this is just the menus and no taskbar and no graphics.\n\n"
  137.         "Select \"Skip this part\" if you do not want to copy anything to WBStartUp.  If you find you like StartMenu, you can always drag-n-drop it to the WBStartUp drawer at a later time."
  138.     )
  139. )
  140. (set rc
  141.     (askchoice
  142.         (prompt "Do you want me to copy StartMenu to Sys:WBStartup?\n(Select \"Skip this part\" if you don't want anything copied)")
  143.         (choices "StartMenu" "StartMenuLite" "StartMenuUltraLite" "Skip this part")
  144.         (help starthelp)
  145.     )
  146. )
  147.  
  148. (select rc
  149.     (copyfiles
  150.         (source (tackon @default-dest "StartMenu"))
  151.         (dest "Sys:WBStartUp")
  152.         (infos)
  153.     )
  154.     (copyfiles
  155.         (source (tackon @default-dest "StartMenuLite"))
  156.         (dest "Sys:WBStartUp")
  157.         (infos)
  158.     )
  159.     (copyfiles
  160.         (source (tackon @default-dest "StartMenuUltraLite"))
  161.         (dest "Sys:WBStartUp")
  162.         (infos)
  163.     )
  164.     (set nop 1)
  165. )
  166.  
  167. (set rc
  168.     (askchoice
  169.         (prompt "Which icons?")
  170.         (choices "Standard 4 color" "8 color (NewIcons)" "8 color MWB")
  171.         (help "Select which icon set StartMenu should use in the menus")
  172.     )
  173. )
  174.  
  175. (select rc
  176.     (copyfiles
  177.         (source "icons4")
  178.         (dest @default-dest)
  179.         (all)
  180.         (optional "force")
  181.     )
  182.     (copyfiles
  183.         (source "icons8")
  184.         (dest @default-dest)
  185.         (all)
  186.         (infos)
  187.         (optional "force")
  188.     )
  189.     (copyfiles
  190.         (source "iconsMWB")
  191.         (dest @default-dest)
  192.         (all)
  193.         (optional "force")
  194.     )
  195.  
  196. )
  197.  
  198. (if (> vers 37)
  199.     (
  200.         (set rc
  201.             (askchoice
  202.                 (prompt "Choose a language:")
  203.                 (choices "Deutsch" "Français)" "Italiano" "Svenska" "English")
  204.                 (help "Select which language to use for StartSetup and FindFile")
  205.             )
  206.         )
  207.         (select rc
  208.             (copyfiles
  209.                 (source "locale/Deutsch")
  210.                 (dest "Locale:catalogs/Deutsch")
  211.                 (all)
  212.                 (optional "force")
  213.             )
  214.             (copyfiles
  215.                 (source "locale/Français")
  216.                 (dest "Locale:catalogs/Français")
  217.                 (all)
  218.                 (optional "force")
  219.             )
  220.             (copyfiles
  221.                 (source "locale/Italiano")
  222.                 (dest "Locale:catalogs/Italiano")
  223.                 (all)
  224.                 (optional "force")
  225.             )
  226.             (copyfiles
  227.                 (source "locale/Svenska")
  228.                 (dest "Locale:catalogs/Svenska")
  229.                 (all)
  230.                 (optional "force")
  231.             )
  232.             (set nop 1)
  233.         )
  234.  
  235.     )
  236. )
  237.  
  238. (set rc
  239.     (askoptions
  240.         (prompt "What \"Extras\" programs would you like to install?")
  241.         (choices "WinControl" "WinMaster" "MemMeter" "AudMon" "SMRexx")
  242.         (help "These programs use the TaskBar, so you should only install them if you use the full version of Startmenu")
  243.     )
  244. )
  245.  
  246. (if (BITAND rc 1)
  247.     (copyfiles
  248.         (source "Extras/WinControl/WinControl")
  249.         (dest (tackon @default-dest "StartUp"))
  250.         (infos)
  251.         (optional "force")
  252.     )
  253.     (copyfiles
  254.         (source "Extras/WinControl/WCPrefs")
  255.         (dest "Sys:Prefs")
  256.         (infos)
  257.         (optional "force")
  258.     )
  259. )
  260.  
  261. (if (BITAND rc 2)
  262.     (copyfiles
  263.         (source "Extras/WinMaster/WinMaster")
  264.         (dest (tackon @default-dest "StartUp"))
  265.         (infos)
  266.         (optional "force")
  267.     )
  268. )
  269.  
  270. (if (BITAND rc 4)
  271.     (copyfiles
  272.         (source "Extras/MemMeter/MemMeter")
  273.         (dest (tackon @default-dest "StartUp"))
  274.         (infos)
  275.         (optional "force")
  276.     )
  277. )
  278.  
  279. (if (BITAND rc 8)
  280.     (copyfiles
  281.         (source "Extras/AudMon")
  282.         (dest (tackon @default-dest "StartUp"))
  283.         (infos)
  284.         (all)
  285.         (optional "force")
  286.     )
  287. )
  288.  
  289. (if (BITAND rc 16)
  290.     (copyfiles
  291.         (source "Extras/SMRexx/SMRexx")
  292.         (dest (tackon @default-dest "StartUp"))
  293.         (infos)
  294.         (optional "force")
  295.     )
  296. )
  297.  
  298.  
  299. (exit bye)
  300.